﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase.Basis;

namespace yq.IBase.DBHelper.Tool
{
    internal interface ITool
    {
        /// <summary>
        ///返回数据库表列表名
        /// </summary>
        /// <returns></returns>
        Dictionary<string, string> GetTableList(DbHelper hp);

        /// <summary>
        /// 获取行锁的方式
        /// </summary>
        /// <param name="sql"></param>
        /// <returns></returns>
        SelectSQL GetRowLock(SelectSQL sql);

        /// <summary>
        /// Top排序
        /// </summary>
        /// <param name="sql"></param>
        /// <param name="top"></param>
        /// <returns></returns>
        SelectSQL Top(SelectSQL sql, int top);
    }
}
